<!DOCTYPE html>
<html>
	<head>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<meta charset="utf-8">
		<title></title>

	</head>


	<body>
		<div id="app">
			{{name}}
			<p v-bind:title="message">abc</p>
			<p v-if="seen"> this text can hidden.</p>
			<p> here are your new frends:</p>
			<li v-for="f in friends">
				{{f}}
			</li>
			<span v-on:click="SayHello">click me</span>
		</div>


	</body>

	<script>
		var app = new Vue({
			el: '#app',
			data: {
				name: 'paul',
				message: 'hello Vue',
				seen: true,
				friends: ['Jim', 'Tom', 'jerry']
			},
			methods: {
				SayHello: function() {
					this.message = 'Hello,Paul.'
				}
			}

		});
	</script>
</html>
